<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="../templates/commonLayout.xhtml">
    <ui:define name="head">
        <script type="text/javascript" src="#{root}js/bootstrap-dropdown.js" />        
        <script type="text/javascript" src="#{root}js/subnav.js" />
        <ui:insert name="main-head">
            <title>ScrumPMT</title>
        </ui:insert>        
    </ui:define> 
    <ui:define name="content">
        <c:if test="${listadoSprintBean.bean.sprintActual gt '0'}">
            <div class="subnav">
                <ul class="nav nav-pills">                
                    <li>
                        <h:outputLink value="#{root}pizarra/pizarra.jsf" >
                            <h:outputText value="#{msgs.pizarra}"/>
                        </h:outputLink>
                    </li>
                    <li>
                        <h:outputLink value="#{root}tarea/backlog.jsf" >
                             <h:outputText value="#{msgs.backlog}"/>
                        </h:outputLink>
                    </li>
                    <li>
                        <h:outputLink value="#{root}sprint/schedule.jsf" >
                            <h:outputText value="#{msgs.calendario}"/>
                        </h:outputLink>
                    </li>
                    <li>
                        <h:outputLink value="#{root}chart/burndown.jsf" >
                            <h:outputText value="#{msgs.burndown}"/>
                        </h:outputLink>
                    </li>
                    <li>
                        <h:outputLink value="#{root}sprint/new.jsf" >
                             <h:outputText value="#{msgs.nuevoSprint}"/>
                        </h:outputLink>
                    </li>
                    <li class="dropdown secondary-nav">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <h:outputText value="#{msgs.sprints}"/> <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <c:forEach var="sprint" items="#{sprintsProductoBean.sprints}">
                                <li>
                                    <h:outputLink value="#{root}sprint/main.jsf" >
                                        <f:param name="sprint" value="#{sprint.id}"/>
                                        <h:outputText value="#{sprint.des}" />
                                    </h:outputLink>
                                </li>
                            </c:forEach>
                        </ul>
                    </li>
                </ul>
            </div>
            <h:form id="hidden">
                <p:inputText value="Un valor"/> <!-- Chapuza para que me cargue el JQuery -->
            </h:form>
        </c:if>        
        <ui:insert name="main-content" />        
    </ui:define>
</ui:composition>


